package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

import java.util.Map;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * @Auth: lemon
     * @Desc: 分页查询员工信息
     * @Date:
     */
    PageResult pageEmployee(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * @Auth: lemon
     * @Desc: 新增员工
     * @Date:
     */
    void addEmployee(EmployeeDTO employeeDTO);

    /**
     * @Auth: lemon
     * @Desc: 根据id查询员工信息
     * @Date:
     */
    Employee getEmployeeById(Long id);

    /**
     * @Auth: lemon
     * @Desc: 根据id启用、禁用员工账号
     * @Date:
     */
    void changeStatus(String status, String id);

    /**
     * @Auth: lemon
     * @Desc: 修改密码
     * @Date:
     */
    void editPassword(PasswordEditDTO passwordEditDTO);

    /**
     * @Auth: lemon
     * @Desc: 编辑员工信息
     * @Date:
     */
    void updateEmployee(EmployeeDTO employeeDTO);
}
